import { applyFor } from '@/api/apply'

export default {
    state: {
        applystate: []
    },
    getters: {
        applygetter(state) {
            return state.applystate
        }
    },
    mutations: {
        applyMtt(state, payload) {
            state.applystate = payload
        }
    },
    actions: {
        applyAction({ commit }, payload) {
            console.log(12345);
            applyFor().then(({ res }) => {
                console.log(1234);
                console.log(res);
                this.applyAction.state.applystate=res
            })
        },
    }

}